﻿using AutoMapper;
using SX.BaseService.Service;
using System;
using System.Collections.Generic;
using System.Text;

namespace SX.Service.SysConfig
{
    public class MapConfig : Profile
    {
        public MapConfig()
        {
            CreateMap<ConfigAddModel,BaseSetting>();
            CreateMap<ConfigAddModel,SMSSetting>();
            CreateMap<ConfigAddModel,MailSetting>();
            CreateMap<ConfigAddModel,FileUploadSetting>();

            CreateMap<BaseSetting, ConfigAddModel>();
            CreateMap<SMSSetting, ConfigAddModel>();
            CreateMap<MailSetting, ConfigAddModel>();
            CreateMap<FileUploadSetting, ConfigAddModel>();
        }
    }
}
